package cn.yunhe.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.yunhe.dao.BedDao;
import cn.yunhe.entity.Bed;
import cn.yunhe.service.BedService;
@Service("bedService")
public class BedServiceImpl implements BedService {
	@Autowired
	private BedDao bedDao;
	
	@Override
	public List<Bed> findBedAll() {
		System.out.println("==============查询床位!!!!=====================");
		return bedDao.findBedAll();
	}

	public BedDao getBedDao() {
		return bedDao;
	}

	public void setBedDao(BedDao bedDao) {
		this.bedDao = bedDao;
	}

	@Override
	public int updateBedBybid(int bid) {
		
		
		return bedDao.updateBedBybid(bid);
	}

	@Override
	public int updateBedBybid2(int bid) {
		// TODO Auto-generated method stub
		return bedDao.updateBedBybid2(bid);
	}

	@Override
	public int updateBedBstate() {
		// TODO Auto-generated method stub
		return bedDao.updateBedBstate();
	}

}
